package top.kaoshanji.r2ch07e;

/**
 * 代码清单-r2ch07e-01：被引介增强的目标对象
 * @author kaoshanji
 * ^_^
 * create time 2025/5/7 18:31
 */
public class ForumService {

    public void removeTopic(int topicId) {
        System.out.println("模拟删除Topic记录:"+topicId);
        try {
            Thread.currentThread().sleep(20);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }

    }

    public void removeForum(int forumId) {
        System.out.println("模拟删除Forum记录:"+forumId);
        try {
            Thread.currentThread().sleep(40);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

}
